package com.ibeeking.found.cop.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName  FriendsTransferFlowDO
 * @Description 客户流转记录表
 * @Author ibeeking
 * @Date 2021-01-15 10:44
 **/
@Data
@TableName("friends_transfer_flow")
public class FriendsTransferFlowDO implements Serializable {
    private static final long serialVersionUID = -1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 客户id
     */
    @TableField(value = "friends_id")
    private Long friendsId;
    /**
     * 客户Code
     */
    @TableField(value = "friends_code")
    private String friendsCode;

    /**
     * 跟进员工Id
     */
    @TableField(value = "employee_id")
    private Long employeeId;

    /**
     * 跟进员工Code，来自企微
     */
    @TableField(value = "employee_code")
    private String employeeCode;

    /**
     * 流转方式;1=首次添加；2=再次分配；3=离职继承
     */
    @TableField(value = "transfer_channel")
    private Integer transferChannel;

    /**
     * 流转时间
     */
    @TableField(value = "transfer_time")
    private LocalDateTime transferTime;

}
